<?php
// +----------------------------------------------------------------------
// | TorrentsModel.class.php - MyPT
// +----------------------------------------------------------------------
// | Copyleft (c) 2010 By Asxzy All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Asxzy <asxzy@163.com>
// +----------------------------------------------------------------------
class TorrentsModel extends Model{
	protected $_validate = array (
		array('filename','require','请选择种子文件',0,'',1),
		array('name','require','请输入种子名称'),
		array('info_hash','','文件已经存在,请不要重复上传',0,'unique',1), 
	);
	protected $_auto = array(
		array('added',get_time,1,'function'),
	);
}
?>